package com.adtech.adms.system;

/**
 * 系统日志常量类
 * @author Dormin 
 * @since 2011-6-13 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public final class LogConstants {

	public static final int LOG_PRIORITY_FATAL = 1;
	public static final int LOG_PRIORITY_ERROR = 2;
	public static final int LOG_PRIORITY_WARNING = 3;
	public static final int LOG_PRIORITY_INFO = 4;

	public static final int MODULE_USER_MANAGEMENT = 100;

	public static final int OPERATION_CREATE = 1;
	public static final int OPERATION_UPDATE = 2;
	public static final int OPERATION_DELETE = 3;
	public static final int OPERATION_QUERY = 4;
	public static final int OPERATION_LOGIN = 5;

	public static final int SYSTEM_STOP_STATUS = 1;
	public static final int SYSTEM_RUNNING_STATUS = 2;
	public static final int INTERVAL_KEEP_ALIVE = 10;

	public static final int STATUS_LOGIN = 1;
	public static final int STATUS_LOGOUT = 2;
	public static final String QUERY_FIELD_STATUS = "status";
	public static final String QUERY_FIELD_LOGINNAME = "loginName";
	public static final String QUERY_FIELD_OPERATION = "operation";
	public static final String QUERY_FIELD_CREATETIME = "createTime";
	public static final String QUERY_FIELD_LOGINTIME = "loginTime";
	public static final String QUERY_FIELD_LOGOUTTIME = "logoutTime";


	public static final int LOG_TYPE_USER_LOGIN = 10005;
	public static final int LOG_TYPE_LOGIN_FAIL = 10006;
	public static final int LOG_TYPE_LOGIN_OUT = 10007;
	public static final int LOG_TYPE_ILLLEGAL_USER = 10008;
	public static final int LOG_TYPE_ERROR_PASSWORD = 10009;
	public static final int LOG_TYPE_SYSTEM_STOP = 10010;
	public static final int LOG_TYPE_SESSION_INVALIDATE = 10011;
	public static final int LOG_TYPE_CHANGE_PASSWORD = 10012;
	public static final int LOG_TYPE_CREATE_USER = 10013;
	public static final int LOG_TYPE_EDIT_USER = 10014;
	public static final int LOG_TYPE_DELETE_USER = 10015;
    public static final int LOG_TYPE_CREATE_ROLE = 10016;
    public static final int LOG_TYPE_EDIT_ROLE = 10017;
    public static final int LOG_TYPE_DELETE_ROLE = 10018;

    public static final int LOG_TYPE_CREATE_REGION = 10019;
    public static final int LOG_TYPE_EDIT_REGION = 10020;
    public static final int LOG_TYPE_DELETE_REGION = 10021;

    public static final int LOG_TYPE_CREATE_COMPANY = 10022;
    public static final int LOG_TYPE_EDIT_COMPANY = 10023;
    public static final int LOG_TYPE_DELETE_COMPANY = 10024;

    public static final int LOG_TYPE_CREATE_DEPARTMENT = 10025;
    public static final int LOG_TYPE_EDIT_DEPARTMENT = 10026;
    public static final int LOG_TYPE_DELETE_DEPARTMENT = 10027;

    public static final int LOG_TYPE_CREATE_POST = 10028;
    public static final int LOG_TYPE_EDIT_POST = 10029;
    public static final int LOG_TYPE_DELETE_POST = 10030;

	//public static final int LOG_TYPE_CONFIG_UNKNOWN_ERROR = 20001;
	public static final int LOG_TYPE_BUSINESS = 20002;
	
	public static final String MESSAGE_CREATE_ID = "00000000000000000000000000000001";
	public static final String MESSAGE_EDIT_ID = "00000000000000000000000000000002";
	public static final String MESSAGE_DELETE_ID = "00000000000000000000000000000003";
	public static final String MESSAGE_IMPORT_ID = "00000000000000000000000000000004";
	public static final String MESSAGE_ACCESSORY_CREATE_ID = "00000000000000000000000000000005";
	public static final String MESSAGE_ACCESSORY_DELETE_ID = "00000000000000000000000000000006";
	public static final String MESSAGE_ACCESSORY_UPLOAD_ID = "00000000000000000000000000000007";
	public static final String MESSAGE_IMPORT_ALL_ID = "00000000000000000000000000000008";
	
	public static final String DEFAULT_MESSAGE = "“$0（$1）”$-1";
	public static final String DEFAULT_MESSAGE_IMPORT = "导入“$0（$1）”";
	public static final String DEFAULT_MESSAGE_IMPORT_ALL = "成功导入$0条项目";
	public static final String DEFAULT_DETAIL_MESSAGE = "$0由“$1”改为“$2”；";
	public static final String DEFAULT_MESSAGE_ACCESSORY_CREATE = "“$0（$1）”新增了$2“$3”";
	public static final String DEFAULT_MESSAGE_ACCESSORY_DELETE = "“$0（$1）”删除了$2“$3”";
	public static final String OPERATE_CREATE = "新建";
	public static final String OPERATE_IMPORT = "导入";
	public static final String OPERATE_EDIT = "编辑";
}
